﻿<UserControl x:Class="CECB.Resources.UserControlExtraValues"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             mc:Ignorable="d" 
             d:DesignHeight="300" d:DesignWidth="300">
    <Grid>
        <StackPanel Orientation="Vertical">
            <StackPanel Orientation="Horizontal">
                <Label Name="lblNameOfMem" Height="23" Width="179"></Label>
            </StackPanel>
            <StackPanel Orientation="Horizontal">
                <ListBox Name="listBox1" ScrollViewer.HorizontalScrollBarVisibility="Auto" Background="Beige" Height="300" Width="300" Margin="0,10,0,0" SelectionMode="Multiple">
                    <ListBox.ItemTemplate>
                        <DataTemplate>
                            <StackPanel Orientation="Horizontal" Width="300" Margin="0,0,5,0" Background="AliceBlue">
                                <ScrollViewer VerticalScrollBarVisibility="Disabled" HorizontalScrollBarVisibility="Auto" Width="250">
                                    <StackPanel Orientation="Vertical" Width="auto">
                                        <Label  Content="{Binding Impacts.impt_name}" FontSize="14" Height="30" Width="auto"  Margin="0,0,0,0" />
                                        <Label Content="{Binding Activities.actv_name}" Height="30" Width="auto" Margin="0,0,0,0" Foreground="Black"   HorizontalAlignment="Right" FontSize="14" />
                                    </StackPanel>
                                </ScrollViewer>
                                    <StackPanel Orientation="Horizontal" Width="70">
                                    <Label  Content="{Binding mtrx_magnitude}" FontSize="14" Height="30" Width="25"  Margin="0,0,0,0" />
                                    <Label Content="{Binding mtrx_importance}" Height="30" Width="25" Margin="0,0,0,0" Foreground="Black"   HorizontalAlignment="Right" FontSize="14" />
                                    <CheckBox  FontSize="14" Height="20"  IsChecked="{Binding Path=IsSelected,  RelativeSource={RelativeSource AncestorType={x:Type ListBoxItem}}}"/>
                                </StackPanel>

                            </StackPanel>

                        </DataTemplate>
                    </ListBox.ItemTemplate>
                </ListBox>
            </StackPanel>
        </StackPanel>

    </Grid>
</UserControl>
